package com.zxx.pattern.proxyPattern.aidl;

import android.os.Binder;

import java.util.UUID;

/**
 * @author zxx on 2021/5/18
 */
public class BankBinder extends Binder implements IBank {


    @Override
    public String openAccount(String name, String pwd) {
        return name + " 开户成功！账号为：" + UUID.randomUUID();
    }

    @Override
    public String saveMoney(int money, String account) {
        return "账户：" + account + "存入 " + money + "qian";
    }

    @Override
    public String takeMoney(int money, String account, String pwd) {
        return "账户：" + account + "取出 " + money + "钱";
    }

    @Override
    public String closeAccount(String account, String pwd) {
        return "账户：" + account + "销户成功";
    }
}
